package com.ml.mall.entity.variant;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author kyyang
 * Created 2021-05-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_product_variant_recommend")
@ApiModel(value = "SysProductVariantRecommend对象", description = "")
public class SysProductVariantRecommend implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_delete",fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer isDelete;

    /**
     * 子商品ID
     */
    @ApiModelProperty(value = "子商品ID")
    @TableField("variant_id")
    private Long variantId;

    /**
     * 新产品推荐:  0：不推荐；1：推荐
     */
    @ApiModelProperty(value = "新产品推荐:  0：不推荐；1：推荐")
    @TableField("latest_recommend")
    private Integer latestRecommend;

    /**
     * 受欢迎产品：0：不推荐；1：推荐；
     */
    @ApiModelProperty(value = "受欢迎产品：0：不推荐；1：推荐；")
    @TableField("popular_recommend")
    private Integer popularRecommend;

    /**
     * 管理员推荐：0：不推荐；1：推荐；
     */
    @ApiModelProperty(value = "管理员推荐：0：不推荐；1：推荐；")
    @TableField("admin_recommend")
    private Integer adminRecommend;


    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @TableField("sort_no")
    private Integer sortNo;

    /**
     * 产业
     */
    @ApiModelProperty(value = "产业ID")
    @TableField("industry_id")
    private Long industryId;

}
